package com.yzj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Emp {
    @TableId(type = IdType.AUTO)
    private Integer empno;
    private String ename;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hiredate;
    private float sal;
    private  Integer deptno;
    @TableField(exist = false)
    private  Dept dept;
}
